/*
 * @(#) EvaResultServiceImpl.java Sep 30, 2011
 *
 * Copyright (c) 2011, Strong Technology. All Rights Reserved.
 * Strong Technology. CONFIDENTIAL
 */
package cn.strong.gweva.statistic.business.service.impl;

import java.util.List;

import cn.strong.gweva.common.business.entity.PagerEntity;
import cn.strong.gweva.common.business.entity.db.JxkhResultEntity;
import cn.strong.gweva.common.business.service.impl.AbstractServiceImpl;
import cn.strong.gweva.common.util.Constants4Method;
import cn.strong.gweva.statistic.business.entity.EvaResultEntity;
import cn.strong.gweva.statistic.business.entity.EvaResultSearchEntity;
import cn.strong.gweva.statistic.business.service.EvaResultService;


/**
 * 考核结果Service实现类.
 * 
 * @author jincong
 * @version 1.0
 * @since Sep 30, 2011
 */
public class EvaResultServiceImpl extends AbstractServiceImpl implements EvaResultService
{

	/**
	 * 考核结果分页查询
	 * 
	 * @param pagerEntity
	 * @param evaResultSearchEntity
	 * @return 考核结果查询结果
	 * @throws Exception 异常
	 */
	public PagerEntity searchEvaResultPage(PagerEntity pagerEntity,
			EvaResultSearchEntity evaResultSearchEntity) throws Exception
	{

		return this.getCommonDao().searchPager(pagerEntity,
				Constants4Method.EVARESULT_SEARCH_EVA_RESULT_LIST, evaResultSearchEntity);
	}

	/**
	 * 考核结果列表查询.
	 * 
	 * @param evaResultSearchEntity
	 * @return 考核结果列表
	 * @throws Exception 异常
	 */
	@SuppressWarnings("unchecked")
	public List<EvaResultEntity> searchEvaResultList(EvaResultSearchEntity evaResultSearchEntity)
			throws Exception
	{

		return this.getCommonDao().searchList(Constants4Method.EVARESULT_SEARCH_EVA_RESULT_LIST,
				evaResultSearchEntity);
	}

	/**
	 * 删除考核结果.
	 * 
	 * @param jxkhResultEntity
	 * @throws Exception
	 */
	public void delete(JxkhResultEntity jxkhResultEntity) throws Exception
	{
		this.getCommonDao().delete(Constants4Method.EVARESULT_DELETE_EVA_RESULT, jxkhResultEntity);
	}
}
